import { createRouter, createWebHashHistory } from 'vue-router'
import Chat from '../components/Chat.vue'
import SvgGallery from '../components/SvgGallery.vue'
import SvgPreview from '../components/SvgPreview.vue'
import SvgDetail from '../components/SvgDetail.vue'

const routes = [
    { path: '/', component: SvgGallery },
    { path: '/chat', component: Chat },
    { path: '/preview', component: SvgPreview },
    { path: '/detail', component: SvgDetail }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router